package pl.mdziedzic.unittests.selenium;

import org.openqa.selenium.Capabilities;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.remote.DesiredCapabilities;

public class HomePage extends Page {

	public HomePage(WebDriver driver) {
		super(driver, "", "Domeny: rejestracja domen, giełda domen, serwery i Strony WWW - nazwa.pl");
	}

	public DomainRegistrationPage searchForDomain(String name) {
		insertTextAndSubmit("domain", name);
		forceWait();

		return new DomainRegistrationPage(driver);
	}

}
